package com.it.service.impl;

import com.it.dao.AccountDao;
import com.it.pojo.Account;
import com.it.service.AccountService;

import java.util.List;

public class AccountServiceImpl implements AccountService {
    private int num;
    private AccountDao accountDao;
    //对需要注入的常量提供set注入
    public void setNum(int num) {
        this.num = num;
    }
    //对dao提供set注入的方法
    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public List<Account> findAll() {
        return null;
    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void update(Account account) {

    }

    @Override
    public Account findById(Integer id) {
        return null;
    }

    @Override
    public void insertAccount(Account account) {

    }
}
